<h1>Liste points de montage</h1>

<fieldset>
  <legend>Liste des points de montage</legend>
  <table class="main_table_pdm">
  <tr>
	<th></th>
    <th>Designation</th>
    <th>Capacite utilisee</th>
    <th>Capacite totale</th>
    <th>Id machine</th>
  </tr>

<% @pdms.each do |pdm| %>
  <td class="img_hd"></td>
    <td class="box_pdm"><%=h pdm.designation %></td>
    <td><%=h pdm.capacite_utilisee %></td>
    <td><%=h pdm.capacite_totale %></td>
    <td><%=h pdm.machine.nom_machine %></td>
    <td><%= link_to 'Afficher', pdm %></td>
    <td><%= link_to 'Modifier', edit_pdm_path(pdm) %></td>
    <td><%= link_to 'Supprimer', pdm, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />
</fieldset>

<%= link_to "Création d'un point de montage", new_pdm_path %> |
<%= link_to 'Retour', machines_path %>